import Vue from 'vue'
import App from './App'
import router from './router'
import store from "./store";
import vant from 'vant'
import vcolorpicker from 'vcolorpicker'
import 'vant/lib/index.css';
import "@/styles/index.scss"; // global css
import "@/assets/icon/iconfont.css";
import dingM from '@/utils/ddMAuth'

// import VConsole from 'vconsole/dist/vconsole.min.js' //import vconsole
// const vConsole = new VConsole() // 初始化

Vue.config.productionTip = false
Vue.use(vant)
Vue.use(vcolorpicker)

dingM.authLogin().then(bool => {
  if(bool){
    new Vue({
      el: '#app',
      router,
      store,
      components: { App },
      template: '<App/>'
    })
  }
})

// new Vue({
//   el: '#app',
//   router,
//   store,
//   components: { App },
//   template: '<App/>'
// })
